import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import request from "@/utils/js/public/request"
import $ from 'jquery'
import publicJS from '@/utils/js/public/public'
import "@/utils/style/public/public.less"


// 使用到的element组件
import {
    PageHeader,
    Message,
    Form,
    FormItem,
    Select,
    Option,
    Empty,
    Input,
    TimePicker,
    DatePicker,
    Col,
    Card,
    Divider,
    Button,
    Badge,
    MessageBox,
    Table,
    TableColumn,
    Timeline,
    TimelineItem,
    Dialog,
    Switch,
    Loading
} from 'element-ui'

Vue.use(PageHeader)
Vue.use(Form)
Vue.use(Col)
Vue.use(FormItem)
Vue.use(Select)
Vue.use(Option)
Vue.use(Empty)
Vue.use(Input)
Vue.use(TimePicker)
Vue.use(DatePicker)
Vue.use(Card)
Vue.use(Divider)
Vue.use(Button)
Vue.use(Badge)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Timeline)
Vue.use(TimelineItem)
Vue.use(Dialog)
Vue.use(Switch)
Vue.use(Loading)
Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm


// 使用到的vant组件
import {
    Tab as TabVant,
    Tabs,
    Cell,
    CellGroup,
    Calendar,
    Divider as DividerVant,
    Empty as EmptyVant,
    Field,
    Button as ButtonVant,
    ActionSheet,
    Icon,
    Form as FormVant,
    Uploader,
    Popup,
    DatetimePicker,
    Dialog as DialogVant,
    ContactCard,
    RadioGroup,
    Radio,
} from 'vant'

Vue.use(TabVant)
Vue.use(Tabs)
Vue.use(Cell)
Vue.use(Calendar)
Vue.use(DividerVant)
Vue.use(CellGroup)
Vue.use(EmptyVant)
Vue.use(Field)
Vue.use(ButtonVant)
Vue.use(ActionSheet)
Vue.use(Icon)
Vue.use(FormVant)
Vue.use(Uploader)
Vue.use(Popup)
Vue.use(DatetimePicker)
Vue.use(DialogVant)
Vue.use(ContactCard)
Vue.use(RadioGroup)
Vue.use(Radio)



Vue.prototype.request = request
Vue.prototype.$ = $
// 公共JS对象
Vue.prototype.$public = publicJS
Vue.prototype.$EventBus = new Vue()


Vue.config.productionTip = false


new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')